Open
Conversation
Co-authored-by: saurabhsathe-ms <197688485+saurabhsathe-ms@users.noreply.github.com>
Copilot stopped work on behalf of
saurabhsathe-ms due to an error
January 14, 2026 19:13
Contributor
|
@copilot can you please also add some testcases? |
- Fix SymmetricKeyWrapProvider to use correct .NET 10 APIs (EncryptKeyWrapPadded/DecryptKeyWrapPadded) - Add comprehensive test cases for .NET 10 to verify backward compatibility - Add round-trip tests with multiple key sizes and algorithms - All 65 tests pass on .NET 10 (55 original + 10 new) - All 55 tests pass on .NET 8 (new tests are .NET 10+ only) Co-authored-by: saurabhsathe-ms <197688485+saurabhsathe-ms@users.noreply.github.com>
Contributor
Author
Added comprehensive test cases in commit f8d729a:
All 65 tests pass on .NET 10 (55 original + 10 new). Tests are conditionally compiled for .NET 10+ only. |
Copilot
AI
changed the title
[WIP] Use AES-KW on .NET10 APIs
Use native .NET 10 AES Key Wrap APIs
Jan 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use native .NET 10 AES Key Wrap APIs
Replace manual RFC 3394 implementation with native platform APIs on .NET 10+
Description
SymmetricKeyWrapProvidermanually implemented AES Key Wrap (RFC 3394) using ECB mode. .NET 10 now providesAes.EncryptKeyWrapPadded/DecryptKeyWrapPaddedimplementing RFC 5649, which is backward compatible with RFC 3394 for inputs that are multiples of 8 bytes (already enforced by existing validation).Implementation Changes:
Aes.EncryptKeyWrapPadded/DecryptKeyWrapPaddedTest Cases Added:
#if NET10_0_OR_GREATERTesting Results:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.